/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.applicatioN.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Slim
 */
@Embeddable
public class Exiger1PK implements Serializable {
    @Basic(optional = false)
    @Column(name = "INTITULE")
    private String intitule;
    @Basic(optional = false)
    @Column(name = "NOM_POSTE")
    private String nomPoste;

    public Exiger1PK() {
    }

    public Exiger1PK(String intitule, String nomPoste) {
        this.intitule = intitule;
        this.nomPoste = nomPoste;
    }

    public String getIntitule() {
        return intitule;
    }

    public void setIntitule(String intitule) {
        this.intitule = intitule;
    }

    public String getNomPoste() {
        return nomPoste;
    }

    public void setNomPoste(String nomPoste) {
        this.nomPoste = nomPoste;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (intitule != null ? intitule.hashCode() : 0);
        hash += (nomPoste != null ? nomPoste.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Exiger1PK)) {
            return false;
        }
        Exiger1PK other = (Exiger1PK) object;
        if ((this.intitule == null && other.intitule != null) || (this.intitule != null && !this.intitule.equals(other.intitule))) {
            return false;
        }
        if ((this.nomPoste == null && other.nomPoste != null) || (this.nomPoste != null && !this.nomPoste.equals(other.nomPoste))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.applicatioN.entities.Exiger1PK[ intitule=" + intitule + ", nomPoste=" + nomPoste + " ]";
    }
    
}
